package com.jt.www.domain.dto;

import com.jt.www.domain.po.CommissionPush;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 佣金-推送给销管 对象
 * Created by shaoyn on 2020/04/13.
 */
public class CommissionPushDTO {

    //各渠道固定的编码 并不是 营销员的渠道编码
    @ApiModelProperty(value = "渠道编码")
    private String channelcode = "A02";

    @ApiModelProperty(value = "营销人员代码")
    private String agentcode;

    @ApiModelProperty(value = "保单号")
    private String policyno;

    @ApiModelProperty(value = "批单号")
    private String endorsementno;

    @ApiModelProperty(value = "保费")
    private BigDecimal premium;

    @ApiModelProperty(value = "营销人员佣金")
    private BigDecimal brokerfyc;

    @ApiModelProperty(value = "部门管理费")
    private BigDecimal departmentfee;

    @ApiModelProperty(value = "分公司管理费")
    private BigDecimal branchofficefee;

    @ApiModelProperty(value = "总部利润")
    private BigDecimal headofficefee;

    @ApiModelProperty(value = "特殊类型标识")
    private Byte specialtype;

    @ApiModelProperty(value = "指定营销人员工号 ")
    private String fixedagentcode;

    @ApiModelProperty(value = "指定佣金 ")
    private BigDecimal fixedmoney;

    public CommissionPushDTO() {
    }

    public CommissionPushDTO(CommissionPush commissionPush) {
        this.agentcode = commissionPush.getMarketerNo();
        this.policyno = commissionPush.getPolicyNo();
        this.endorsementno = commissionPush.getEndorsementNo();
        this.premium = commissionPush.getPremium();
        this.brokerfyc = commissionPush.getBrokerFyc();
        this.departmentfee = commissionPush.getDepartmentFee();
        this.branchofficefee = commissionPush.getBranchOfficeFee();
        this.headofficefee = commissionPush.getHeadOfficeFee();
        this.specialtype = commissionPush.getSpecialType();
        this.fixedagentcode = commissionPush.getFixedAgentCode();
        this.fixedmoney = commissionPush.getFixedMoney();
    }

    public String getChannelcode() {
        return channelcode;
    }

    public void setChannelcode(String channelcode) {
        this.channelcode = channelcode;
    }

    public String getAgentcode() {
        return agentcode;
    }

    public void setAgentcode(String agentcode) {
        this.agentcode = agentcode;
    }

    public String getPolicyno() {
        return policyno;
    }

    public void setPolicyno(String policyno) {
        this.policyno = policyno;
    }

    public String getEndorsementno() {
        return endorsementno;
    }

    public void setEndorsementno(String endorsementno) {
        this.endorsementno = endorsementno;
    }

    public BigDecimal getPremium() {
        return premium;
    }

    public void setPremium(BigDecimal premium) {
        this.premium = premium;
    }

    public BigDecimal getBrokerfyc() {
        return brokerfyc;
    }

    public void setBrokerfyc(BigDecimal brokerfyc) {
        this.brokerfyc = brokerfyc;
    }

    public BigDecimal getDepartmentfee() {
        return departmentfee;
    }

    public void setDepartmentfee(BigDecimal departmentfee) {
        this.departmentfee = departmentfee;
    }

    public BigDecimal getBranchofficefee() {
        return branchofficefee;
    }

    public void setBranchofficefee(BigDecimal branchofficefee) {
        this.branchofficefee = branchofficefee;
    }

    public BigDecimal getHeadofficefee() {
        return headofficefee;
    }

    public void setHeadofficefee(BigDecimal headofficefee) {
        this.headofficefee = headofficefee;
    }

    public Byte getSpecialtype() {
        return specialtype;
    }

    public void setSpecialtype(Byte specialtype) {
        this.specialtype = specialtype;
    }

    public String getFixedagentcode() {
        return fixedagentcode;
    }

    public void setFixedagentcode(String fixedagentcode) {
        this.fixedagentcode = fixedagentcode;
    }

    public BigDecimal getFixedmoney() {
        return fixedmoney;
    }

    public void setFixedmoney(BigDecimal fixedmoney) {
        this.fixedmoney = fixedmoney;
    }
}
